package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName todo_main
 */
@TableName(value ="todo_main")
public class TodoMain implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 待办事项内容
     */
    private String content;

    /**
     * 事项展示类型 txt 、 md
     */
    private String type;

    /**
     * 事项类型id
     */
    private Integer todoTypeId;

    /**
     * 上一级待办id
     */
    private Integer upperTodoId;

    /**
     * 提醒时间
     */
    private String remindTime;

    /**
     * 重复类型id
     */
    private Integer todoRepeatTypeId;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 待做、进行中、完成、遗弃
     */
    private String status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 待办事项内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 待办事项内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 事项展示类型 txt 、 md
     */
    public String getType() {
        return type;
    }

    /**
     * 事项展示类型 txt 、 md
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 事项类型id
     */
    public Integer getTodoTypeId() {
        return todoTypeId;
    }

    /**
     * 事项类型id
     */
    public void setTodoTypeId(Integer todoTypeId) {
        this.todoTypeId = todoTypeId;
    }

    /**
     * 上一级待办id
     */
    public Integer getUpperTodoId() {
        return upperTodoId;
    }

    /**
     * 上一级待办id
     */
    public void setUpperTodoId(Integer upperTodoId) {
        this.upperTodoId = upperTodoId;
    }

    /**
     * 提醒时间
     */
    public String getRemindTime() {
        return remindTime;
    }

    /**
     * 提醒时间
     */
    public void setRemindTime(String remindTime) {
        this.remindTime = remindTime;
    }

    /**
     * 重复类型id
     */
    public Integer getTodoRepeatTypeId() {
        return todoRepeatTypeId;
    }

    /**
     * 重复类型id
     */
    public void setTodoRepeatTypeId(Integer todoRepeatTypeId) {
        this.todoRepeatTypeId = todoRepeatTypeId;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 待做、进行中、完成、遗弃
     */
    public String getStatus() {
        return status;
    }

    /**
     * 待做、进行中、完成、遗弃
     */
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TodoMain other = (TodoMain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getTodoTypeId() == null ? other.getTodoTypeId() == null : this.getTodoTypeId().equals(other.getTodoTypeId()))
            && (this.getUpperTodoId() == null ? other.getUpperTodoId() == null : this.getUpperTodoId().equals(other.getUpperTodoId()))
            && (this.getRemindTime() == null ? other.getRemindTime() == null : this.getRemindTime().equals(other.getRemindTime()))
            && (this.getTodoRepeatTypeId() == null ? other.getTodoRepeatTypeId() == null : this.getTodoRepeatTypeId().equals(other.getTodoRepeatTypeId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getTodoTypeId() == null) ? 0 : getTodoTypeId().hashCode());
        result = prime * result + ((getUpperTodoId() == null) ? 0 : getUpperTodoId().hashCode());
        result = prime * result + ((getRemindTime() == null) ? 0 : getRemindTime().hashCode());
        result = prime * result + ((getTodoRepeatTypeId() == null) ? 0 : getTodoRepeatTypeId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", type=").append(type);
        sb.append(", todoTypeId=").append(todoTypeId);
        sb.append(", upperTodoId=").append(upperTodoId);
        sb.append(", remindTime=").append(remindTime);
        sb.append(", todoRepeatTypeId=").append(todoRepeatTypeId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}